%option noyywrap
%{
    #include <iostream>
    #include <string>
    #include <vector>

    // 公式名称获取阶段, 0:未开始, 1:开始， 2：结束
    int formula_name_stage = 0;
    std::string formula_name;
    std::vector<std::string> params;
%}
%%
#                   { formula_name_stage = 1; }
[a-zA-Z]+           {if (formula_name_stage == 1) { formula_name = yytext; formula_name_stage = 2; } else { params.push_back(yytext); }}
.                   {}
%%